/**
 * Program   :   ListResourceElement.java
 * Author    :   shadow guo
 * Create    :   2013-6-4 下午1:49:27
 *
 * Copyright 2008 by Tongfu Information Technology Co. Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Tongfu Information Technology Co. Ltd. ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Tongfu Information Technology Co. Ltd.
 * 
 */
package com.tongfusoft.web.core.service.impl.list;

import java.util.ArrayList;
import java.util.List;

import com.tongfusoft.web.core.action.ExportDefine;

public class ListResourceElement {
	private String select;
	private String from;
	private String where;
	private String orderby;
	private String groupby;
	private List<ExportDefine> titleDef;
	private String listName;
	
	public String getListName() {
		return listName;
	}

	public void setListName(String listName) {
		this.listName = listName;
	}

	public String getGroupby() {
		return groupby;
	}

	public void setGroupby(String groupby) {
		this.groupby = groupby;
	}


	public List<ExportDefine> getTitleDef() {
		return titleDef;
	}

	public void setTitleDef(List<ExportDefine> titleDef) {
		this.titleDef = titleDef;
	}
	
	public void addTitleDef(ExportDefine _titleDef){
		if(titleDef == null){
			titleDef = new ArrayList<ExportDefine>(10);
		}
		
		titleDef.add(_titleDef);
		
	}

	public String getSelect() {
		return select;
	}

	public void setSelect(String select) {
		this.select = select;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getWhere() {
		return where;
	}

	public void setWhere(String where) {
		this.where = where;
	}

	public String getOrderby() {
		return orderby;
	}

	public void setOrderby(String orderby) {
		this.orderby = orderby;
	}

}
